<?php
namespace core;

class Router {

    public static function router($class, $action){

        echo  ( new $class )->$action();exit;
    }

    public static function cliRouter($class,$action,$argv=array()){
        echo  ( new $class )->$action($argv);exit;
    }
}